const Router = require('koa-router');
const { verifyAuth } = require('../middleware/auth.middleware');
const { create, remove, list } = require('../controller/picture.controller');

const pictureRouter = new Router({ prefix: "/picture" });

// 添加一张图片
pictureRouter.post("/", verifyAuth, create);
// 删除一张图片
pictureRouter.delete("/", verifyAuth, remove);
// 获取图片列表
pictureRouter.get("/", list);

module.exports = pictureRouter;

